package com.ruoyi.dr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dr.mapper.DrHomeVideoDataMapper;
import com.ruoyi.dr.domain.DrHomeVideoData;
import com.ruoyi.dr.service.IDrHomeVideoDataService;

/**
 * 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/coreService业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-12
 */
@Service
public class DrHomeVideoDataServiceImpl implements IDrHomeVideoDataService 
{
    @Autowired
    private DrHomeVideoDataMapper drHomeVideoDataMapper;

    /**
     * 查询达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * 
     * @param uid 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core主键
     * @return 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     */
    @Override
    public DrHomeVideoData selectDrHomeVideoDataByUid(String uid)
    {
        return drHomeVideoDataMapper.selectDrHomeVideoDataByUid(uid);
    }

    /**
     * 查询达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core列表
     * 
     * @param drHomeVideoData 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * @return 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     */
    @Override
    public List<DrHomeVideoData> selectDrHomeVideoDataList(DrHomeVideoData drHomeVideoData)
    {
        return drHomeVideoDataMapper.selectDrHomeVideoDataList(drHomeVideoData);
    }

    /**
     * 新增达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * 
     * @param drHomeVideoData 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * @return 结果
     */
    @Override
    public int insertDrHomeVideoData(DrHomeVideoData drHomeVideoData)
    {
        return drHomeVideoDataMapper.insertDrHomeVideoData(drHomeVideoData);
    }

    /**
     * 修改达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * 
     * @param drHomeVideoData 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * @return 结果
     */
    @Override
    public int updateDrHomeVideoData(DrHomeVideoData drHomeVideoData)
    {
        return drHomeVideoDataMapper.updateDrHomeVideoData(drHomeVideoData);
    }

    /**
     * 批量删除达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core
     * 
     * @param uids 需要删除的达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeVideoDataByUids(String[] uids)
    {
        return drHomeVideoDataMapper.deleteDrHomeVideoDataByUids(uids);
    }

    /**
     * 删除达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core信息
     * 
     * @param uid 达人直播、视频、图文、橱窗概况数据 /square_pc_api/homePage/overview/core主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeVideoDataByUid(String uid)
    {
        return drHomeVideoDataMapper.deleteDrHomeVideoDataByUid(uid);
    }
}
